<template>
    <div class="nav">
        <div class="item">
            <router-link to="/">首页</router-link>
        </div>
        <div class="item">
            <router-link to="/about">关于</router-link>
        </div>
        <div class="item">
            <router-link to="/news">新闻</router-link>
        </div>
        <div class="item">
            <router-link to="/product">产品</router-link>
        </div>

    </div>
</template>

<style lang="scss">
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    margin: 10px;

    .item {
        background-color: #eee;
        padding: 10px 50px;
        border-radius: 5px;
        color: #000;

        a{
            color: rgb(13, 143, 230);
            text-decoration: none;

            :hover{
                color: rgb(0, 72, 121);
            }
        }
    }
}
</style>
